package com.xly.webclick.vm;

import android.content.Intent;
import android.os.Bundle;

import com.xly.webclick.base.BaseViewModel;
import com.xly.webclick.view.LoginActivity;
import com.xly.webclick.view.PhoneBindActivity;
import com.xly.webclick.view.RegisterActivity;
import com.xly.webclick.view.SwitchActivity;

/**
 * Created by xuleyuan on 2018/8/18
 */

public class SwitchViewModel extends BaseViewModel {

    public SwitchViewModel(SwitchActivity view) {
        super(view);
    }

    @Override
    protected void initData(Bundle savedInstanceState) {

    }


    public void gotoLogin() {
        getActivity().startActivity(new Intent(getActivity(), PhoneBindActivity.class));
    }

    public void gotoRegister() {
        getActivity().startActivity(new Intent(getActivity(), PhoneBindActivity.class));
    }

    public void gotoPhoneBind() {
        getActivity().startActivity(new Intent(getActivity(), PhoneBindActivity.class));
    }

    @Override
    public void onResume() {

    }

    @Override
    public void onDestroy() {

    }

    @Override
    public void onStop() {

    }

    @Override
    public void onPause() {

    }

    @Override
    public void onRestart() {

    }
}
